﻿Public Class EntityDataSource
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub EntityDataSource1_Inserted(sender As Object, e As System.Web.UI.WebControls.EntityDataSourceChangedEventArgs) Handles EntityDataSource1.Inserted
        Dim myPhotoAlbum As PhotoAlbum = CType(e.Entity, PhotoAlbum)
        Response.Redirect(String.Format("ManagePhotoAlbum.aspx?PhotoAlbumID={0}", myPhotoAlbum.ID.ToString))
    End Sub
End Class